import type { NangoSync<%= modelNames ? ', ' + modelNames : '' %> } from '<%= interfacePath %><%= interfaceFileName %>';

export default async function fetchData(nango: NangoSync): Promise<void> {
    // Integration code goes here
    // to save data use await nango.batchSave
    // to delete data use await nango.batchDelete
}
<% if (hasWebhook) { %>
export async function onWebhookPayloadReceived(nango: NangoSync, payload: any): Promise<void> {
    // handle the subscription types you need
    // use nango.batchUpdate for object change events
}
<% } %>
